package com.tutorialspoint;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;

public class MainApp {
	public static void main(String[] args) {
		// ApplicationContext context = new
		// ClassPathXmlApplicationContext("Beans.xml");
		XmlBeanFactory factory = new XmlBeanFactory(new ClassPathResource("Beans.xml"));

		// HelloWorld upload = (HelloWorld) context.getBean("helloWorld");
		// upload.getMessage();

		HelloWorld obj = (HelloWorld) factory.getBean("helloWorld");
		obj.getMessage();
	}
}